package com.hzqy.persistence.dao.epg;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.epg.AcSignVo;

@Repository
public class AcSignDao extends PersistenceDao<AcSignVo, Integer> {
	
	public int acSignToday(String userId,String date,String activityId){
		Map<String,Object> map = new HashMap<String, Object>();
		map.put("f_asu_serverid",userId);
		map.put("f_asu_cdate",date);
		map.put("f_asu_activityid",activityId);
		return getSqlSession().selectOne(this.getNamespace() + "selectSignTodayCount", map);
	}
	public int acSignInsert(AcSignVo acsv) {
		return getSqlSession().insert(this.getNamespace() + "acSignInsert", acsv);
	}
	public List<AcSignVo> acSignList(AcSignVo acsv){
		return getSqlSession().selectList(this.getNamespace() + "acSignList", acsv);
	}
	public AcSignVo acSignInfo(String userId,String date,String activityId){
		Map<String,Object> map = new HashMap<String, Object>();
		map.put("f_asu_serverid",userId);
		map.put("f_asu_cdate",date);
		map.put("f_asu_activityid",activityId);
		return getSqlSession().selectOne(this.getNamespace() + "acSignInfo", map);
	}
}
